import Layout from '@/layout'

const houseRouter = {
  path: '/house',
  component: Layout,
  redirect: 'noRedirect',
  name: 'house',
  hidden: true,
  meta: {
    title: '我的房源',
    icon: 'el-icon-s-home'
  },
  children: [
    {
      path: 'salesHouse',
      component: () => import('@/views/house/houseListNew'),
      name: 'salesHouse',
      meta: { title: '我的出售', noCache: true }
    },
    {
      path: 'vipDetails',
      component: () => import('@/views/vip/vipDetails'),
      name: 'vipDetails',
      hidden: true,
      meta: { title: '会员详情', noCache: true }
    },
    {
      path: 'modifyHouse/:houDelId',
      component: () => import('@/views/house/modifyHouse'),
      name: 'modifyHouse',
      props: true,
      hidden: true,
      meta: { title: '房源修改', noCache: true }
    },
    {
      path: 'modifyHouseNew/:houDelId',
      component: () => import('@/views/house/modifyHouseNew'),
      name: 'modifyHouseNew',
      props: true,
      hidden: true,
      meta: { title: '房源修改', noCache: true }
    },
    {
      path: 'vrTurnVideo/:houDelId/:required',
      component: () => import('@/views/house/vrTurnVideo'),
      name: 'vrTurnVideo',
      props: true,
      hidden: true,
      meta: { title: '合成视频', noCache: true }
    },
  ]
}

export default houseRouter
